window.onload = function(){

    $("#mainNav").append("<div class=\"container\">\n" +
        "        <a class=\"navbar-brand\" href=\"index.html\">Raines博客首页</a>\n" +
        "        <button class=\"navbar-toggler navbar-toggler-right\" type=\"button\" data-toggle=\"collapse\"\n" +
        "                data-target=\"#navbarResponsive\" aria-controls=\"navbarResponsive\" aria-expanded=\"false\"\n" +
        "                aria-label=\"Toggle navigation\">\n" +
        "            Menu\n" +
        "            <i class=\"fas fa-bars\"></i>\n" +
        "        </button>\n" +
        "        <div class=\"collapse navbar-collapse\" id=\"navbarResponsive\">\n" +
        "            <ul class=\"navbar-nav ml-auto\" id=\"mainProject\">\n" +
        "                <li class=\"nav-item\">\n" +
        "                    <a class=\"nav-link\" href=\"index.html\">家园首页</a>\n" +
        "                </li>\n" +
        "                <li class=\"nav-item\">\n" +
        "                    <a class=\"nav-link\" href=\"about.html\">关于博主</a>\n" +
        "                </li>\n" +
        "                <li class=\"nav-item\">\n" +
        "                    <a class=\"nav-link\" href=\"dairy\">时间规划</a>\n" +
        "                </li>\n" +
        "                <li class=\"nav-item\">\n" +
        "                    <a class=\"nav-link\" href=\"contact.html\">联系</a>\n" +
        "                </li>\n" +
        "            </ul>\n" +
        "        </div>\n" +
        "    </div>");
}